.header {
    display: flex;
    flex-direction: column;
    background-color: #CCD451;
    color: white;
    padding: 15px 20px;
    width: 100%;
}

@media (max-width: 1024px) {
    .header {
        width: 1200px; /* 当窗口宽度小于等于1024px时，header宽度固定为1024px */
        margin: 0 auto; /* 居中显示header */
        box-sizing: border-box; /* 确保padding和border不会影响宽度 */
    }
    .footer{ 
        width: 1200px; /* 当窗口宽度小于等于1024px时，header宽度固定为1024px */
        margin: 0 auto; /* 居中显示header */
        box-sizing: border-box; /* 确保padding和border不会影响宽度 */
    }
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.logo {
    width: 180px; /* Adjust this based on your logo size */
}

.title {
    margin: 0 20px; /* Add some space between logo and title */
}

.header-nav {
    display: flex;
    justify-content: space-around;
    background-color: #7AC067;
    padding: 10px 0;
}

.nav-list {
    list-style-type: none;
    display: flex;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    transition: color .3s ease;
}

.nav-link:hover {
    color: #ccc;
}

.search-form {
    display: flex;
    width: 30%;
}

.search-form input[type=text] {
  padding: 10px;
  border: none;
  border-radius: 3px;
  float: left;
  background: #f1f1f1;
  width: 85%;
}

.search-form button {
  float: left;
  width: 15%;
  padding: 10px;
  background: #3EAB79;
  color: white;
  font-size: 17px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.search-form button:hover {
  background: #009383;
}

.search-form::after {
  content: "";
  clear: both;
  display: table;
}

footer {
    background-color: #CCD451;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}
